$def with(form, departs, note)

                <script type="text/javascript">
                    $$(function () {
                        $$('form').validator({'message': false});
                        $$('.eml_rss_btn').bind('click', function (){
                                                            $$('form').submit();
                                                            _gaq.push(['_trackPageview', '/_trc/subscribe/submit']);
                                                            return false;
                                                        });
                        $$.dialog('._fancybox');
                        
                        $if note:
                            $$('form').data('validator').invalidate({
                                $:note
                            });
                    });
                    function setEmail(email) {
                        $$('input[type=email]').val(email);
                    };
                </script>
                <form method="post">
                    <table class="rss_tb">
						<tr>
							<td colspan="4">只有订阅会员才能继续浏览，请填入E-mail免费订阅。</td>
						</tr>
						<tr>
							<th>E-mail:</th>
							<th colspan="2">省/市:</th>
						</tr>
                        <tr>
                            <td>$:form.email.render()</td>
                            <td>
                                <select name="depart" required="required">
                                    <option value="">—————</option>
                                    $if departs:
                                        $for depart in departs:
                                            <option value="$depart.id">$depart.name</option>
                                </select>
                            </td>
                            <td><a href="javascript:;" class="eml_rss_btn"><b>免费订阅</b></a></td>
                        </tr>
                        <tr>
                            <td colspan="2"><a href="/login?mode=lite&url=$:request('from')" class="_fancybox">已是订阅会员？点此登录</a></td>
                            <td colspan="2" class="t_r"></td>
                        </tr>
                    </table>
                </form>
